home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_inf_hints.cog < prev    next >
Text File  |  1999-11-15  |  6KB  |  246 lines

  1. # Jones 3D Cog Script
  2. #
  3. # INF_Hint.cog
  4. #
  5. # Solves hints    
  6. #
  7. # [SXC]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.         message         startup
  15.         message         activate
  16.         message         entered
  17.         message         taken
  18.         message         user0
  19.         message         user1
  20.         
  21.         thing           player                          local
  22.  
  23.         thing           hint1
  24.         
  25.         thing           hint2
  26.         sector          hint2_sector
  27.         
  28.         thing           hint4
  29.         thing           hint4_button
  30.         
  31.         thing           hint6
  32.         sector          hint6_sector
  33.         
  34.         thing           hint8
  35.         sector          hint8_sector
  36.         
  37.         thing           hint10
  38.         sector          hint10_sector
  39.         
  40.         thing           hint12
  41.         sector          hint12_sector
  42.                                      
  43.         thing           hint14
  44.         sector          hint14_sector
  45.         
  46.         thing           hint16
  47.         surface         hint16_surface
  48.         
  49.         thing           hint18
  50.         sector          hint18_sector
  51.         
  52.         thing           hint20
  53.         thing           hint20_spar
  54.         
  55.         thing           hint22
  56.         sector          hint22_sector
  57.         
  58.         thing           hint24
  59.         thing           hint24_elevator
  60.         
  61.         thing           hint26
  62.         sector          hint26_sector
  63.         
  64.         thing           hint28
  65.         thing           hint28_gem
  66.         
  67.         thing           hint30
  68.         thing           hint30_gem
  69.         
  70.         thing           hint32
  71.         thing           hint32_button
  72.         
  73.         thing           hint34
  74.         sector          hint34_sector
  75.         
  76.         thing           hint36
  77.         sector          hint36_sector
  78.         
  79.         thing           hint38
  80.         thing           hint38_elevator
  81.         
  82.         thing           hint40
  83.         
  84.         thing           hint42
  85.         
  86.  
  87. end
  88.  
  89. # ========================================================================================
  90. code
  91.  
  92. startup:
  93.  
  94.     SetHintSolved(hint1);
  95.     player = GetLocalPlayerThing();
  96.     
  97. return;
  98.  
  99. # ========================================================================================
  100. activate:
  101.  
  102.     If ((GetSenderRef() == hint4_button) && (GetHintSolved(hint4) == 0) && (GetSourceRef() == player))
  103.     {
  104.         SetHintSolved(hint4);
  105.         return;
  106.     }
  107.     
  108.     If ((GetSenderRef() == hint32_button) && (GetHintSolved(hint32) == 0) && (GetSourceRef() == player))
  109.     {
  110.         SetHintSolved(hint32);
  111.         return;
  112.     }
  113.     
  114. return;        
  115.         
  116. # ========================================================================================
  117. entered:
  118.  
  119.     If ((GetSenderRef() == hint2_sector) && (GetHintSolved(hint2) == 0) && (GetSourceRef() == player))
  120.     {
  121.         SetHintSolved(hint2);
  122.         return;
  123.     }
  124.     
  125.     If ((GetSenderRef() == hint6_sector) && (GetHintSolved(hint6) == 0) && (GetSourceRef() == player))
  126.     {
  127.         SetHintSolved(hint6);
  128.         return;
  129.     }
  130.     
  131.     If ((GetSenderRef() == hint8_sector) && (GetHintSolved(hint8) == 0) && (GetSourceRef() == player))
  132.     {
  133.         SetHintSolved(hint8);
  134.         return;
  135.     }
  136.     
  137.     If ((GetSenderRef() == hint10_sector) && (GetHintSolved(hint10) == 0) && (GetSourceRef() == player))
  138.     {
  139.         SetHintSolved(hint10);
  140.         return;
  141.     }
  142.     
  143.     If ((GetSenderRef() == hint12_sector) && (GetHintSolved(hint12) == 0) && (GetSourceRef() == player))
  144.     {
  145.         SetHintSolved(hint12);
  146.         return;
  147.     }
  148.     
  149.     If ((GetSenderRef() == hint14_sector) && (GetHintSolved(hint14) == 0) && (GetSourceRef() == player))
  150.     {
  151.         SetHintSolved(hint14);
  152.         return;
  153.     }
  154.     
  155.     If ((GetSenderRef() == hint16_surface) && (GetHintSolved(hint16) == 0) && (GetSourceRef() == player))
  156.     {
  157.         SetHintSolved(hint16);
  158.         return;
  159.     }
  160.     
  161.     If ((GetSenderRef() == hint18_sector) && (GetHintSolved(hint18) == 0) && (GetSourceRef() == player))
  162.     {
  163.         SetHintSolved(hint18);
  164.         return;
  165.     }
  166.     
  167.     If ((GetSenderRef() == hint20_spar) && (GetHintSolved(hint20) == 0) && (GetSourceRef() == player))
  168.     {
  169.         SetHintSolved(hint20);
  170.         return;
  171.     }
  172.     
  173.     If ((GetSenderRef() == hint22_sector) && (GetHintSolved(hint22) == 0) && (GetSourceRef() == player))
  174.     {
  175.         SetHintSolved(hint22);
  176.         return;
  177.     }
  178.     
  179.     If ((GetSenderRef() == hint24_elevator) && (GetHintSolved(hint24) == 0) && (GetSourceRef() == player))
  180.     {
  181.         SetHintSolved(hint24);
  182.         return;
  183.     }
  184.     
  185.     If ((GetSenderRef() == hint26_sector) && (GetHintSolved(hint26) == 0) && (GetSourceRef() == player))
  186.     {
  187.         SetHintSolved(hint26);
  188.         return;
  189.     }
  190.     
  191.     If ((GetSenderRef() == hint34_sector) && (GetHintSolved(hint34) == 0) && (GetSourceRef() == player))
  192.     {
  193.         SetHintSolved(hint34);
  194.         return;
  195.     }
  196.     
  197.     If ((GetSenderRef() == hint36_sector) && (GetHintSolved(hint36) == 0) && (GetSourceRef() == player))
  198.     {
  199.         SetHintSolved(hint36);
  200.         return;
  201.     }
  202.     
  203.     If ((GetSenderRef() == hint38_elevator) && (GetHintSolved(hint38) == 0) && (GetSourceRef() == player))
  204.     {
  205.         SetHintSolved(hint38);
  206.         return;
  207.     }
  208.     
  209.         
  210. return;        
  211.  
  212. # ========================================================================================
  213. taken:
  214.  
  215.     If ((GetSenderRef() == hint28_gem) && (GetHintSolved(hint28) == 0) && (GetSourceRef() == player))
  216.     {
  217.         SetHintSolved(hint28);
  218.         return;
  219.     }
  220.     
  221.     If ((GetSenderRef() == hint30_gem) && (GetHintSolved(hint30) == 0) && (GetSourceRef() == player))
  222.     {
  223.         SetHintSolved(hint30);
  224.         return;
  225.     }
  226.             
  227. return;
  228.  
  229. # ========================================================================================
  230. user0:
  231.     
  232.     SetHintSolved(hint40);
  233.     
  234. return;
  235.  
  236. # ========================================================================================
  237. user1:
  238.  
  239.     SetHintSolved(hint42);
  240.     
  241. return;
  242.  
  243.  
  244. end
  245.  
  246.